<?php 
namespace app\clubadmin\controller;
use \think\Controller;
use \think\Session;
class Common extends Controller
{
     public function _initialize(){
     	$path=url('club_course/index');
     	if (!Session::has('login_id')) {
     		echo "<script>alert('请登录后访问');
     		location.href='$path';</script>";

     	}
     }

}
